 <meta charset="utf-8">
<div class="box box-primary" id="app_salariedStaffzz_edit">
            <form role="form" id="editFormzzz">
               <div class="box-body" style="overflow: hidden;">
                 
                 <div class="form-group">
                  <label for="name">请输入密码</label>
                  <input type="password"   v-model="chpwd.password"  name="password" class="form-control" id="password" placeholder="请输入密码" required>
                </div> 
                
                 <div class="form-group">
                  <label for="name">请再次输入密码</label>
                  <input type="password2"   v-model="chpwd.password2"  name="password2" class="form-control" id="password2" placeholder="请输入密码" required>
                </div> 
             
              </div>
              <!-- /.box-body -->
              <div class="box-footer">
                 <button type="button" class="btn btn-default" v-on:click="cancel">取消</button>
                 <button type="button" class="btn btn-info pull-right"  v-on:click="edit">提交</button>
              </div>
            </form>

<script type="text/javascript">
var vm = new Vue({
        el: '#app_salariedStaffzz_edit',
        data: {
        	chpwd:{
        			password: null,
        			password2: null
        		 },
        	    bus:new Vue()
        },
        mounted:function(){
       	 let _this=this;
        },
         methods: {
        	
        	 edit: function () {
        	    	if($("#editFormzzz").valid()){
        	    		let _this=this;
        	    		var url="tcms/lauthUser/changePwd";
        	    		zfesAjax.ajaxTodo(url,_this.chpwd, function(data){
        	    			alertSwal.successText(data.message);
        	    			 layer.close(layer.index);
        	    		})
        	    	}
        	    },
        	    cancel: function(){
        	    	 layer.close(layer.index);
        	    	 
        	    }
        }
    })

 </script>
</div>